<?php

namespace ServiceAgent;

use ServiceAgent\API\IServiceTest;

class ServiceTest implements IServiceTest {

	public function init ($conf) {
	}

	public function start () {
	}

	public function stop () {
	}

	public function testNoParam () {
		return 'NoParam';
	}

	public function testParam ($phoneArr) {
		$params = array(
			'13' => 13666,
			'14' => 'abc'
		);
		if ($phoneArr !== $params) {
			throw new \Exception('param parse error.', 110);
		}
		
		return $params;
	}
}